<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'getAllEditor.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link href="css/space.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript">
$(function() {
	$.ajax({
		type : "post",//发送方式       
		url : "space/getAllPerByChiefId.action",// 路径   
		data : "",
		success : function(data) {
			var obj = eval("(" + data + ")");
			var html = "";
			for ( var i = 0; i < obj.length; i++) {
				html += "<option value='"+obj[i].periodicalId+"'>" + obj[i].name + "</option>";
			}
			$("#ajaxJsonSelectId>option").remove();
			$("#ajaxJsonSelectId").append(html);
		}
	});
});
</script>
</head>

<body>
	<div class="all">
		<div class="bodyge-left">
			<div class="bodyge-left-a1"><span class="font-b">编辑列表</span></div>
			<div id="xlk">
				<form action="space/getEditorByPeriodicalId.action" method="post">
					<select id="ajaxJsonSelectId" name="value" style="width: 130px;" onmouseover="getPeriodical()">
						<option value="0">请选择</option>
					</select>
					<input type="submit" class="inputStyle" style="width:90px" value="按期刊查询" />
				</form>
			</div>
			<table class="ma-tab" cellspacing="0px" cellpadding="0px">
				<tr class="ma-tab-tr_a">
					<td style="text-align:left; padding-left:30px; width:160px;">邮箱</td>
					<td align="left">用户名</td>
					<td>姓名</td>
					<td>期刊</td>
					<td>公司</td>
					<!-- <td>状态</td> -->
					<td>操作</td>
				</tr>
				<tr height="5px"></tr>
				<c:forEach items="${requestScope.editorVOList}" var="list">
					<tr class="ma-tab-tr_b">
						<td width="190px">${list.email }</td>
						<td width="80px">${list.userName }</td>
						<td width="80px">${list.realName }</td>
						<td width="90px">${list.name }</td>
						<td width="150px">${list.company }</td>
						<%-- <td class="states">${list.status }</td> --%>
						<td class="option" align="center" width="50px">
							<a href="space/deleteEditor.action?value=${list.editorId }&userIdStr=${list.userId}">删除</a>
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>
	</div>
</body>
</html>
